package org.bookie.hibernate.config.entries;

import org.bookie.hibernate.config.ConfigElement;

/**
 * Hibernate configuration entity that configures hibernate listeners
 * implementation of the {@link ConfigElement}
 * 
 * @see ConfigElement
 * @author zubairov
 * 
 */
public class ListenerElement implements ConfigElement {

	private String instance;

	private String type;

	public void setClazz(String instance) {
		this.instance = instance;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getClassName() {
		return instance;
	}

	public String getType() {
		return type;
	}
	
	
	@Override
	public String toString() {
		return "HibernateListener(type=" + type + ",instance=" + instance + ")";
	}
}
